PrizmDoc v12.0 - November 15, 2016
JSP Sample

This topic contains steps for how to install on Linux and Windows.

Note that JDK 1.7 and JRE 1.7+ are required.
  1. Begin the installation of PrizmDoc for Windows or PrizmDoc for Linux depending on your operating system.
  1. Install Apache Tomcat.
  2. After installation is complete, launch Tomcat Manager.
  3. In the WAR file to deploy section, select Choose File.
  4. Select PCCSample.war file to upload from the installation location:
  1. Click Deploy:

  1. PrizmDoc Server web tier will be deployed on your Tomcat server. The deployed app may be found in the following location:
  1. Give read/write permissions to the Documents folder and the Markups folder. Give read permissions to the ImageStamp folder. These folders are installed on the following location:

Overview of Samples

From the splash page you have two options:

  1. Choice of Viewing Client:
  1. Select a sample document -OR- upload a document:

 

  1. Full Viewer:

If you select Full Viewer on the splash page, then documents will be viewed with the full-featured, out-of-the-box responsive Viewing Client:

  1. Book Reader:

If you select Book Reader on the splash page, then documents will be viewed with the book reader. The book reader demonstrates how the Viewing Client can be heavily customized:

 

JSP Directory Structure

The jsp samples are installed under /usr/share/prizm/Samples/jsp/Sample/public_html. This folder contains 6 sub-folders, one folder for each of the four samples (full Viewing Client, book reader, e-signer and e-signer template designer) and two folders for the splash pages (main splash page and the e-sign splash page):

Each of the sample folders are completely self-contained, meaning that they contain all of the files needed to run the sample. Furthermore, with the exception of a few project files and build files, the sample folders contain only the files needed to run the sample. 

Folder contents: common

File / Folder

Description

src\com\accusoft\pccis\sample\pas src\com\accusoft\pccis\sample\html5

Contains classes that support the communication between the Viewing Client and PrizmDoc Application Services. While the code for the classes can be modified as needed, modifications should be done with care.

public_html/WEB-INF/web.xml

Contains web tier settings.Some of these settings define the connection for the PrizmDoc Application Services.See more on the Configuration with web.xml section below.

Folder contents: full-viewer-sample

File / Folder

Description

viewer-assets folder

Contains the essential JavaScript, CSS, fonts, images, language data, and templates (HTML) that make up the Viewing Client.

viewer-assets/less folder

Contains less that can be used to build the Viewing Client CSS. This folder is non-essential, and does not need to be re-distributed.

viewer-assets/Gulpfile.js

Contains Gulp tasks to build the viewer less and icons. This file is non-essential and does not need to be re-distributed.

viewer-assets/package.json

A file used by npm (a package manager). It defines the dependencies installed by npm, which are required to run Grunt and compile the less.

viewer-webtier folder

Contains files that implement the jsp layer of communication between the Viewing Client and the PrizmDoc Application Services.

viewer-webtier/pas.jsp

Handles all requests from the Viewing Client and forwards them to the PrizmDoc Application Services.

index.jsp

The default page for the sample. The Viewing Client’s code gets loaded by this page.

predefinedSearch.json

This data file contains information defining search queries that will appear as selectable items in the full Viewing Client.

Note: This file is consumed by the page index.jsp and the JSON is injected into the HTML that is returned by index.jsp. Ultimately, the predefined search terms are provided as a JavaScript hash, when the Viewing Client is created.

redactionReason.json

This data file contains information defining redaction reasons that are available in the Viewing Client. 

Note: This file is consumed by the page Default.aspx and the JSON is injected into the HTML that is returned by Default.aspx. Ultimately, the redaction reasons are provided as a JavaScript hash, when the Viewing Client is created.

Folder contents: book-reader-sample

File / Folder

Description

viewer-assets folder

Contains the essential JavaScript, CSS, fonts, images, language data, and templates (HTML) that make up the book reader Viewing Client.

viewer-assets/less folder

Contains less that can be used to build the Viewing Client CSS. This folder is non-essential, and does not need to be re-distributed.

viewer-assets/Gruntfile.js

Contains Grunt tasks to build the viewer less. This file is non-essential and does not need to be re-distributed.

viewer-assets/package.json

A file used by npm (a package manager). It defines the dependencies installed by npm, which are required to run Grunt and compile the less.

viewer-assets/selection.json

A file used by the IcoMoon application to generate the icons in the book reader Viewing Client.  If you need to add an icon to the Viewing Client, you can add the icon to this file and use the IcoMoon application (https://icomoon.io) to generate a new icon font. This file is non-essential and does not need to be re-distributed.

viewer-webtier folder

Contains files that implement the jsp layer of communication between the book reader Viewing Client and the PrizmDoc Application Services.

viewer-webtier/pas.jsp

Handles all requests from the Viewing Client and forwards them to the PrizmDoc Application Services.

index.html

The default page for the sample. The Viewing Client’s code gets loaded by this page.

sample-config.js

Contains references to the assets, web tier, and language files used by the Viewing Client in this sample.

Folder contents: e-signer-sample

File / Folder

Description

viewer-assets folder

Contains the essential JavaScript, CSS, fonts, images, language data, and templates (HTML) that make up the book reader Viewing Client.

modules folder

Contains uncompiled assets of the Viewing Client. These files will be compiled to viewer-assets/js/bundle.js and viewer-assets/css/bundle.css by the build process defined in Gulpfile.js.

The files in this folder are  non-essential and do not need to be re-distributed.

Gulpfile.js

Contains Gulp tasks to build the viewer js and css files. This file is non-essential and does not need to be re-distributed.

viewer-assets/package.json

A file used by npm (a package manager). It defines the dependencies installed by npm, which are required to run Gulp and compile the Viewing Client assets.This file is non-essential and does not need to be re-distributed.

viewer-webtier folder

Contains files that implement the php layer of communication between the book reader Viewing Client and the PrizmDoc Application Services.

viewer-webtier/pas.jsp

Handles all requests from the Viewing Client and forwards them to the PrizmDoc Application Services.

index.html

The default page for the sample. This page loads the Viewing Client.

webpack.config.js

Webpack configuration file. This file contains all the settings for the webpack module bundler. We use webpack to compile all the files in the modules folder to the bundle.js and bundle.css that are found in the viewer-assets folder.

Folder contents: template-designer-sample

File / Folder

Description

viewer-assets folder

Contains the essential JavaScript, CSS, fonts, images, language data, and templates (HTML) that make up the book reader Viewing Client.

modules folder

Contains uncompiled assets of the Viewing Client. These files will be compiled to viewer-assets/js/bundle.js and viewer-assets/css/bundle.css by the build process defined in Gulpfile.js.

The files in this folder are  non-essential and do not need to be re-distributed.

Gulpfile.js

Contains Gulp tasks to build the viewer js and css files. This file is non-essential and does not need to be re-distributed.

viewer-assets/package.json

A file used by npm (a package manager). It defines the dependencies installed by npm, which are required to run Gulp and compile the Viewing Clientassets.This file is non-essential and does not need to be re-distributed.

viewer-webtier folder

Contains files that implement the php layer of communication between the book reader Viewing Client and the PrizmDoc Application Services.

viewer-webtier/pas.jsp

Handles all requests from the Viewing Client and forwards them to the PrizmDoc Application Services.

index.html

The default page for the sample. This page loads the Viewing Client.

webpack.config.js

Webpack configuration file. This file contains all the settings for the webpack module bundler. We use webpack to compile all the files in the modules folder to the bundle.js and bundle.css that are found in the viewer-assets folder.

Configuration with web.xml

The file web.xml is used to configure the connection settings between the web tier and PrizmDoc Application Services. The file can be found at: public_html/WEB-INF/web.xml. This file is self-documenting, but a little information about the configuration options is given below.

DocumentPath

The sample pulls named documents from this location. The DocumentPath must have read/write permissions in order for the file drag and drop functionality of the splash page to work.

PrizmApplicationServices[Scheme|Host|Port]

Specifies how to connect to the PrizmDoc Application Services

All settings are configured using the <context-param/> element. Here is an example of how it would look on the web.xml file:

Example
Copy Code
<context-param>
        <description>Prizm Application Services Scheme</description>
        <param-name>PrizmApplicationServicesScheme</param-name>
        <param-value>http</param-value>
</context-param>

 

 

 


©2016. Accusoft Corporation. All Rights Reserved.

Send Feedback